import App from './App'
import Vue from 'vue'
import VueCompositionAPI from '@vue/composition-api'
import uView from '@/uni_modules/uview-ui/index.js'

import store from './store'

// import VConsole from 'vconsole'
// const vConsole = new VConsole()

import {
  router,
  RouterMount
} from './router/router.js'
Vue.use(router)
import './utils'

Vue.config.productionTip = false
App.mpType = 'app'

Vue.use(VueCompositionAPI)
Vue.use(uView)

const app = new Vue({
  store,
  ...App
})


// #ifdef H5
RouterMount(app, router, '#app')
// #endif

// #ifndef H5
app.$mount() //为了兼容小程序及app端必须这样写才有效果
// #endif
